package ee.serge.util;

import com.google.gwt.user.client.ui.Grid;

public class GridTable extends Grid {

   public GridTable(int rows, int cols) {
      super(rows, cols);
      setStyleName("gridTable");
      for (int i = 0; i < getRowCount(); i++) {
         if ((i & 1) == 0) {
            getRowFormatter().setStyleName(i, "row_a");
         } else {
            getRowFormatter().setStyleName(i, "row_b");
         }
      }
   }   
}
